/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';
/**
 *方式1 ：es6
 * 推荐
 */
export let name = '龙龙',age = 18
export function sun(a,b){
    return a+b
}
export  default class ElComponent extends Component {
    render(){
      return  <Text style={{fontSize:20,backgroundColor:'red'}} >
          你好 {this.props.name}!
        </Text>
    }
}  
